/*
 * Powered By [rapid-framework]
 * Csdn Code: generate simple CRUD code in single table.
 * Since 2015 - 2017
 */

package com.vcredit.creditcat.service.income;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcredit.creditcat.model.IncomeType;
import com.vcredit.creditcat.persistence.base.IncomeTypeMapper;

 /*
  * @author zhangxingong
  * @version 1.0
  * @since 1.0
 */
@Service
public class IncomeTypeService {
    
    @Autowired
	private IncomeTypeMapper incomeTypeMapper;
    
	public List<IncomeType> find(IncomeType incomeType){
	    return incomeTypeMapper.find(incomeType);
	}
	
	public IncomeType findById(Integer incomeId){
	    return incomeTypeMapper.findById(incomeId);
	}
	
	public List<IncomeType> findAll(){
	    return incomeTypeMapper.findAll();
	}
	
	public void insert(IncomeType incomeType){
		incomeTypeMapper.insert(incomeType);
	}
	
	public void update(IncomeType incomeType){
		incomeTypeMapper.update(incomeType);
	}
	
}
